﻿<%@ Page Language="C#" MasterPageFile="~/Design/MasterPage/MasterPage.master" AutoEventWireup="true" CodeFile="CheckInTaskForm.aspx.cs" Inherits="App_Input_CheckInTaskForm" Title="入住确认" ValidateRequest="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
        <table width="100%">
            <tr>
                <td style="height: 87px">
                    <table border="0" class="table_border_line">
                        <tr>
                            <td align="left">
                                <script language="javascript" type="text/javascript">
                                    (new TitleBar('SearchBar', '检索条件')).showBar();
                                </script>
                            </td>
                        </tr>                        
                    </table>
                    <table border="0" class="table_border_line" style="background:ffffff">
                        <tr>
                            <td class="list_data_bg_left" style="width: 80px; white-space: nowrap; height: 18px;padding-left:18px">移交员工</td>
                            <td align="left" style="height: 18px; width:260px">
                                <asp:TextBox id="txtFromEmployeeId" runat="server" CssClass="default" Width="120px" MaxLength="4" />
                                <a href="#" onclick="popupEmployeeSearch('<%=txtFromEmployeeId.ClientID %>',null)">
                                            <img src="../../images/search.jpg" border="0" /></a>
                            </td>
                            <td class="list_data_bg_left" style="width: 80px; white-space: nowrap; height: 18px;padding-left:18px">接收员工</td>
                            <td align="left" style="height: 18px">
                                <asp:TextBox id="txtToEmployeeId" runat="server" CssClass="default" Width="120px" MaxLength="4" />
                                <a href="#" onclick="popupEmployeeSearch('<%=txtToEmployeeId.ClientID %>',null)">
                                            <img src="../../images/search.jpg" border="0" /></a>
                            </td>
                        </tr>
                        <tr>
                            <td class="list_data_bg_left" style="width: 80px; white-space: nowrap; height: 18px;padding-left:18px">移交日期</td>
                            <td align="left" style="height: 18px; width:260px">
                                <asp:TextBox id="txtBeginDeliverDate" runat="server" onfocus="new Calendar(1900,2015,0,null).show(this);" CssClass="default" Width="120px" MaxLength="4" />
                                ～ <asp:TextBox id="txtEndDeliverDate" runat="server" onfocus="new Calendar(1900,2015,0,null).show(this);" CssClass="default" Width="120px" MaxLength="4" />
                            </td>
                            <td class="list_data_bg_left" style="width: 80px; white-space: nowrap; height: 18px;padding-left:18px">接收日期</td>
                            <td align="left" style="height: 18px">
                                <asp:TextBox id="txtBeginReceptionDate" runat="server" onfocus="new Calendar(1900,2015,0,null).show(this);" CssClass="default" Width="120px" MaxLength="4" />
                                ～ <asp:TextBox id="txtEndReceptionDate" runat="server" onfocus="new Calendar(1900,2015,0,null).show(this);" CssClass="default" Width="120px" MaxLength="4" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td align="center">
                    &nbsp;
                    <asp:Button ID="btnSearch" runat="server" Text="检 索" Width="68px"
                         CssClass="button1" OnClick="btnSearch_Click" />&nbsp;&nbsp;
                        <asp:Button ID="btnBack" runat="server" Text="返 回" Width="68px" CssClass="button1" />
                </td>
            </tr>
        </table>
        
        <% if( GridViewResult.Rows.Count>0 ) { %>
        <table border="0" class="table_border_line">
            <tr>
                <td align="left">
                    <script language="javascript" type="text/javascript">
                        (new TitleBar('SearchBar', '检索结果')).showBar();
                    </script>
                </td>
            </tr>                        
        </table>
        <% } %>
        <asp:GridView ID="GridViewResult" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CssClass="GridView_table"
            OnRowCommand="GridViewResult_RowCommand"
            DataKeyNames="CheckInId" OnRowDataBound="GridViewResult_RowDataBound" 
            Width="100%"
            OnPageIndexChanging="GridViewResult_PageIndexChanging"
            >
            <Columns>
                <asp:BoundField HeaderText="房间编号">
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                    <ItemStyle CssClass="GridView_item_center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="会员姓名">
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                    <ItemStyle CssClass="GridView_item_left" />
                </asp:BoundField>
                <asp:BoundField HeaderText="移交员工">
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                    <ItemStyle CssClass="GridView_item_center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="移交日期">
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                    <ItemStyle CssClass="GridView_item_center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="接收员工">
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                    <ItemStyle CssClass="GridView_item_center" />
                </asp:BoundField>
                <asp:BoundField HeaderText="接收日期">
                    <HeaderStyle CssClass="GridView_head_grayblue" />
                    <ItemStyle CssClass="GridView_item_center" />
                </asp:BoundField>
                <asp:ButtonField ButtonType="Image" CommandName="details" HeaderText="详细" Text="详细"
                    ImageUrl="~/images/info.gif">
                    <ItemStyle CssClass="GridView_item_center" />
                    <HeaderStyle Width="120" CssClass="GridView_head_grayblue" />
                </asp:ButtonField>
            </Columns>
            <PagerStyle HorizontalAlign="Right" />
        </asp:GridView>
        
</asp:Content>

